import {defineStore} from "pinia";
import {computed, ref} from "vue";

const useCountStore = defineStore("countStore", () => {
    const count = ref<number>(0)

    const maxCount = computed(() => count.value * 10)
    const changeCount = () => {
        count.value++
    }

    return {
        count,
        maxCount,
        changeCount,
    }

})

export default useCountStore
